package com.example.orderserver.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.productserver.entity.Product;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author whx
 * @date 2022/4/3
 */
@TableName("`order`")
@Data
@ApiModel(value = "Order对象", description = "订单对象")
public class Order {

    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "订单号")
    private String orderNo;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "状态：0未提交1已提交")
    private Integer status;

    @TableField(exist = false)
    private Product product;
}
